import request from '@/utils/request'

export function queryMenusAll(data) {
  return request({
    url: 'menus/all',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function postMenusInsert(data) {
  return request({
    url: '/menusInsert',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function putUpdateMenus(data) {
  return request({
    url: '/menusUpdate',
    method: 'put',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function postDelMenus(data) {
  return request({
    url: '/menusDelete',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
